<template>
  <div class="top">
    <img
      src="../../assets/MedCheng-logo.png"
      style="width: 210px; margin-left: -20px"
    />

    <el-button type="primary" @click="exit()">退出</el-button>
  </div>
</template>

<script>
import { useRouter } from "vue-router";
const $router = useRouter();
export default {
  name: "top",
  setup() {},
  methods: {
    exit() {
      console.log("退出了");
      this.$router.push("/login");
    },
  },
};
</script>

<style>
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}
</style>